// These are meant to be typed into the REPL. You can also run
// scala -Xnojline < repl-session.scala to run them all at once.
/**
  * 4.3.2 和 Java 的互操作
  * 同上，使用 JavaConversions 进行转换
  */

import scala.collection.JavaConverters._
val ids = java.time.ZoneId.SHORT_IDS.asScala

val props = System.getProperties().asScala

import java.awt.font.TextAttribute._
// Import keys for map below
val attrs = Map(FAMILY -> "Serif", SIZE -> 12)
// A Scala map
val font = new java.awt.Font(attrs.asJava)
// Expects a Java map
